<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@taglib prefix="s" uri="/struts-tags" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>">

    <title>套餐信息</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <link rel="stylesheet" type="text/css" href="css/UpdateMeal.css">

    <link type="text/css" rel="stylesheet" href="css/smartmenu.css">
    <script type="text/javascript" src="<%=basePath%>/jslib/index/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="<%=basePath%>/jslib/index/smartmenu-min.js"></script>
    <script type="text/javascript" src="<%=basePath%>/jslib/Menu.js"></script>
</head>
<body style="text-align: center;">
<%@ include file="/page/share/menu.jsp" %>
<div id="content">
<div id="name" style="background: url(../../img/oneMeal.png)"></div>
<form method="post" action="Meal!updateMeal.action" id="modify">
    <table align="center" border="1" cellspacing="0">
        <thead align="center">
        <tr>
            <td>
                套餐名称
            </td>
            <td>
                节假日
            </td>
            <td>
                套餐使用开始时间
            </td>
            <td>
                套餐使用结束时间
            </td>
            <td>
                情侣房价格
            </td>
            <td>
                标准房价格
            </td>
            <td>
                中房价格
            </td>
            <td>
                大房价格
            </td>
            <td>
                VIP房价格
            </td>
        </tr>
        </thead>
        <tr>
            <s:iterator value="meal" var="m">
        <tr>
            <td>
                <input type="text" name="mealName"
                       value="<s:property value="#m.mealName" />">
                &nbsp;
            </td>
            <td>
                <s:property value="#m.holiday"/>
                <input type="hidden" name="holiday"
                       value="<s:property value="#m.holiday"/>">
                &nbsp;
            </td>
            <td>
                <s:property value="#m.beginTime"/>
                <input type="hidden" name="beginTime" id="beginTime"
                       value="<s:property value="#m.beginTime" />">
                &nbsp;
            </td>
            <td>
                <s:property value="#m.endTime"/>
                <input type="hidden" name="endTime" id="endTime"
                       value="<s:property value="#m.endTime" />">
                &nbsp;
            </td>
            <td>
                <input type="text" name="coupleRoomPrice"
                       value="<s:property value="#m.coupleRoomPrice" />">
                &nbsp;
            </td>
            <td>
                <input type="text" name="standardRoomPrice"
                       value="<s:property value="#m.standardRoomPrice" />">
                &nbsp;
            </td>
            <td>
                <input type="text" name="middleRoomPrice"
                       value="<s:property value="#m.middleRoomPrice" />">
                &nbsp;
            </td>
            <td>
                <input type="text" name="bigRoomPrice"
                       value="<s:property value="#m.bigRoomPrice" />">
                &nbsp;
            </td>
            <td>
                <input type="text" name="vipRoomPrice"
                       value="<s:property value="#m.vipRoomPrice" />">
                &nbsp;
            </td>
        </tr>
        </s:iterator>

        </tr>
    </table>
    <br/>
    <input type="submit" value="修改" id="stb" class="btn" style="font-size: 16px;"/>
    <input type="reset" value="重设" id="res" class="btn" style="font-size: 16px;"/>
    <br/>
</form>
<h3>
    修改后的资料
</h3>

<table align="center" border="1" cellspacing="0" id="show" style="width: 900px;">
    <thead align="center">
    <tr>
        <td>
            序号
        </td>
        <td>
            套餐名称
        </td>
        <td>
            节假日
        </td>
        <td>
            套餐使用开始时间
        </td>
        <td>
            套餐使用结束时间
        </td>
        <td>
            情侣房价格
        </td>
        <td>
            标准房价格
        </td>
        <td>
            中房价格
        </td>
        <td>
            大房价格
        </td>
        <td>
            VIP房价格
        </td>
    </tr>
    </thead>
    <tbody align="center">
    <tr>
        <s:iterator value="meal" var="m" status="n">
    <tr>
        <td>
            <s:property value="#n.index+1"/>
            &nbsp;
        </td>
        <td>
            <s:property value="#m.mealName"/>
            &nbsp;
        </td>
        <td>
            <s:property value="#m.holiday"/>
            &nbsp;
        </td>
        <td>
            <s:property value="#m.beginTime"/>
            &nbsp;
        </td>
        <td>
            <s:property value="#m.endTime"/>
            &nbsp;
        </td>
        <td>
            <s:property value="#m.coupleRoomPrice"/>
            &nbsp;
        </td>
        <td>
            <s:property value="#m.standardRoomPrice"/>
            &nbsp;
        </td>
        <td>
            <s:property value="#m.middleRoomPrice"/>
            &nbsp;
        </td>
        <td>
            <s:property value="#m.bigRoomPrice"/>
            &nbsp;
        </td>
        <td>
            <s:property value="#m.vipRoomPrice"/>
            &nbsp;
        </td>
    </tr>
    </s:iterator>

    </tr>
    </tbody>
</table>
 </div>
<div id="bottom"></div>
</body>
</html>
